home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)t6.d64
/
rat run.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
3KB
|
117 lines
10 PRINT"[147]":Z=0
56 POKE 53281,13
70 PRINT" [213][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][201]"
72 PRINT" [199] RAT-RUN [200]"
74 PRINT" [202][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][203]"
76 PRINT" BY IAN MACLAREN & JOHN LOUNSBERRY"
77 PRINT" * JOYSTICK USE PORT 2 *"
78 PRINT" INSTRUCTIONS: RUN AS FAST AS YOU CAN TO THE OPEN DOOR !"
79 PRINT
80 PRINT" YOUR TIME IS COUNTED & WHEN YOU HIT A OBJECT YOU LOSE (100 POINTS)!"
81 PRINT
82 PRINT" [166][169] "
84 PRINT" LITTLE MOUSE TO KING RAT * [210][198][195][209][209][209][209] "
85 PRINT"[213][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][201] [206][200][160][199] [205]"
97 PRINT" LEVEL OF DIFFICULTY (1-20) "
98 INPUTN
99 PRINT"[147]"
100 FORX=55296TO56295
110 POKEX,0:NEXTX
120 FORX=1TON*20
130 R=INT(RND(86)*999)+1024
140 C=INT(RND(86)*16)+106
145 POKER,C:NEXTX
150 FORX=1024TO1063:POKEX,102:NEXTX
155 FORX=1024TO1984STEP40:POKEX,102:NEXTX
160 FORX=1063TO2023STEP40:POKEX,102:NEXTX
165 FORX=1984TO2023:POKEX,102:NEXTX
170 FORX=1824TO1834:POKEX,32:NEXTX
180 FORX=1213TO1223:POKEX,32:NEXTX
200 M=1824:T=0
250 POKEM,81:POKEM+54272,1:T=T+10:Q=0
255 IFM=1223THEN2000
260 J=PEEK(56320)AND15
265 K=INT(RND(86)*15)
266 IFK=13THENGOSUB1300
267 PRINT"":T=T+5
268 PRINTT:POKE1064,102:POKE1064+54272,0
270 IFJ=14THEN350
275 IFJ=7THEN400
280 IFJ=13THEN450
285 IFJ=11THEN500
290 GOTO260
300 REM-CHECK JOYSTICK SITUATION !!
350 IFPEEK(M-40)<>32THENQ=1:GOSUB1000
360 IFQ<>0THEN390
370 POKEM,32:POKEM+54272,0
380 M=M-40
390 GOTO250
400 IFPEEK(M+1)<>32THENQ=2:GOSUB1000
410 IFQ<>0THEN390
420 POKEM,32:POKEM+54272,0
430 M=M+1
440 GOTO250
450 IFPEEK(M+40)<>32THENQ=3:GOSUB1000
460 IFQ<>0THEN390
470 POKEM,32:POKEM+54272,0
480 M=M+40
490 GOTO250
500 IFPEEK(M-1)<>32THENQ=4:GOSUB1000
510 IFQ<>0THEN390
520 POKEM,32:POKEM+54272,0
530 M=M-1
540 GOTO250
1000 ONQGOTO1010,1020,1030,1040
1010 POKEM-40+54272,2:Z=Z+1:GOTO1050
1020 POKEM+1+54272,2:Z=Z+1:GOTO1050
1030 POKEM+40+54272,2:Z=Z+1:GOTO1050
1040 POKEM-1+54272,2:Z=Z+1:GOTO1050
1050 S=54272
1060 POKES+24,15
1070 POKES+5,9
1080 POKES+1,20
1090 POKES+4,128
1100 FORD=1TO10:NEXTD
1110 POKES+4,129
1115 T=T+100
1120 RETURN
1300 P=INT(RND(86)*900)+1064
1305 IFPEEK(P)=102THEN1300
1310 POKEP,107
1320 RETURN
2000 PRINT"[147]"
2010 POKE 53281,15
2020 PRINT:PRINT
2030 PRINT"YOU COLLIDED WITH ";Z;" OBJECTS."
2040 PRINT
2050 E=4000-T:E=E*63
2060 IFT>4000THEN2100
2065 IFT>2000THEN2200
2070 IFT>1500ANDT<2000THEN2300
2075 IFT>1000ANDT<1500THEN2400
2080 IFT>700ANDT<1000THEN2500
2090 IFT>450ANDT<700THEN2600
2095 IFT<450THEN2700
2100 PRINT"YOU ARE PRETTY BAD !!!!!"
2121 PRINT"TRY ANOTHER LEVEL (LOWER) !"
2130 GOTO3000
2200 PRINT"YOU DEFINITLEY NEED MORE PRACTICE."
2210 PRINT"WHAT WERE YOU DOING????[160][160]"
2220 GOTO3000
2300 PRINT" YOUR AVERAGE , OK !!?"
2310 GOTO3000
2400 PRINT"YOUR ABOVE AVERAGE,TRY AGAIN!!"
2410 GOTO3000
2500 PRINT"*** GREAT SCORE *** "
2510 GOTO3000
2600 PRINT"VERY GOOD . CONGRADULATIONS!!"
2610 GOTO3000
2700 PRINT" EXCELLENT !!"
2710 PRINT"YOU HAVE THE MAKINGS OF A CHAMPION !!"
2720 GOTO3000
3000 PRINT
3100 PRINT"YOUR TIME WAS ";T;" MICROSECONDS."
3200 PRINT
3300 PRINT"YOUR SCORE WAS ";E
3400 END